﻿<UserControl x:Class="StackHash.PieChartControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="MasterResources.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Border BorderThickness="0.5" BorderBrush="Black" Margin="6" ClipToBounds="True">
        <Viewbox MaxWidth="400" MaxHeight="300" Stretch="Uniform">
            <Grid Width="400" Height="300" Background="White">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="250*" />
            <ColumnDefinition Width="150*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TextBlock FontSize="14" FontWeight="Bold" Margin="3" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center" Name="textTitle" />
        
        <Grid Margin="3" SizeChanged="Grid_SizeChanged" Name="pieGrid" Grid.Row="1">
                <Canvas Name="pieCanvas" />
        </Grid>
        
        <Canvas Margin="3" Name="legendCanvas" Grid.Row="1" Grid.Column="1" />
    </Grid>
        </Viewbox>
    </Border>
</UserControl>
